package interpreter.example;

/**
 * 音符类
 * @author cheng:
 * @date 2019/4/26 14:33
 */
public class Scale extends Expression{
    @Override
    public void excute(String key, double value) {
        String scale = null;
        switch ((int)value){
            case 1:
                scale = "低音";break;
            case 2:
                scale = "中音";break;
            case 3:
                scale = "高音";break;
            default:
        }
        System.out.println("scale: " + scale);
    }
}
